package com.naiterui.ehp.bs.emr.entity.mongo.health;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 健康档案VO
 * @Author gongbaoqiang
 * @Date 2020/6/2 2:06 PM
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Document(collection = "patient_health_record")
public class PatientHealthRecord implements Serializable {
    private static final long serialVersionUID = -646563638322286561L;

    private String id;

    /**
     * 家庭成员关系id
     */
    private Long familyId;

    /**
     * 患者id
     */
    private Long patientId;

    /**
     * 成员：0：父亲；1：母亲；2：兄弟姐妹；3：子女；4：丈夫；5：妻子；6：本人；7：其他家庭成员
     */
    private Integer realation;

    /**
     * 基本信息
     */
    private BaseInfo baseInfo;

    //======既往史===============

    /**
     * 传染病史
     */
    private Infection infection;

    /**
     * 慢病史
     */
    private Chronic chronic;

    /**
     * 外伤史
     */
    private Trauma trauma;

    /**
     * 输血史
     */
    private Transfusion transfusion;

    /**
     * 预防接种史
     */
    private Vaccination vaccination;

    //======既往史===============


    //======个人史===============
    /**
     * 吸烟史
     */
    private Smoking smoking;

    /**
     * 饮酒史
     */
    private Drinking drinking;

    /**
     * 疫区涉足史
     */
    private EpidemicArea eah;

    /**
     * 婚育史
     */
    private Mch mch;

    /**
     * 过敏史
     */
    private Allergy allergy;


    //======个人史===============

    private Date createdAt;

    private Date changedAt;

}
